package br.ufmg.dcc.vod.remoteworkers.util;

public class PostRaceWaitCommand extends RaceConditionCommand {

	private final SyncQueueBasedLock lock;

	public PostRaceWaitCommand(SyncQueueBasedLock lock) {
		this.lock = lock;
	}
	
	@Override
	public Integer process() throws Exception {
		Integer process = super.process();
		lock.lock();
		return process;
	}

}
